<?php

namespace App\Repository\Repositories;

use App\Repository\Repositories\Interfaces\GuestbookRepository;
use App\Repository\Models\Guestbook;

/**
 * Class GuestbookRepositoryEloquent.
 *
 * @package namespace App\Repository\Repositories;
 */
class GuestbookRepositoryEloquent extends BaseRepository implements GuestbookRepository
{
    /**
     * 搜索
     * @var array
     */
    protected $fieldSearchable = [
        'park_name',
        'park_title',
        'type',
        'park_phone',
        'park_leaveWord'
    ];

    /**
     * 多字段联合模糊查询,前端查询字段名keyword
     * @var array
     */
    public $fieldFuzzySearch = [
        'park_name',
        'park_title',
        'park_phone',
        'park_leaveWord'
    ];
    /**
     * Specify Model class name
     *
     * @return string
     */
    public function model()
    {
        return Guestbook::class;
    }
}
